package jpm.position;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class PositionKeyTest {
	@Test public void equals() {
		assertTrue(new PositionKey("MSFT", "ACC-123").equals(new PositionKey("MSFT", "ACC-123")));
		
		assertFalse(new PositionKey("MSFT", "ACC-123").equals(new PositionKey("GOOG", "ACC-123")));
		assertFalse(new PositionKey("MSFT", "ACC-123").equals(new PositionKey("MSFT", "ACC-231")));
		
		assertFalse(new PositionKey("MSFT", "ACC-123").equals("JPM"));
	}
}
